import Service from './server'

/*登录接口*/
export function tologin(data) {
  return Service({
    method: 'post',
    url: '/login/login',
    data: data
  })
}

/*注册接口*/
export function toRegister(data) {
  return Service({
    method: 'post',
    url: '/login/register',
    data: data
  })
}

/*获取轮播图接口*/
export function getBanner() {
  return Service({
    method: 'get',
    url: '/banner/list'
  })
}